package cn.qiao.demo.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Created on 2021/9/1
 * @author qiao
 * @Desc:  通过该注解可直接在接口中获取当前登录用户的信息
 */
@Target({ElementType.PARAMETER})
@Retention(RUNTIME)
@Documented
public @interface CurrentUser {

}
